<!DOCTYPE html>
<?php
//print_r($page);
?>
<html lang="en">
	<head>
		<link rel="stylesheet" href="<?php echo base_url(); ?>res/css/bootstrap.min.css">
		<link rel="stylesheet" href="<?php echo base_url(); ?>res/css/main.css">
		<script src="<?php echo base_url(); ?>res/js/jquery-2.1.0.min.js"></script>

	</head>
	<body>
		<a href="https://twitter.com/share" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="large" data-count="none">Tweet</a>
		<script>
			! function(d, s, id) {
				var js, fjs = d.getElementsByTagName(s)[0];
				if (!d.getElementById(id)) {
					js = d.createElement(s);
					js.id = id;
					js.src = "https://platform.twitter.com/widgets.js";
					fjs.parentNode.insertBefore(js, fjs);
				}
			}(document, "script", "twitter-wjs");
		</script>
		<div class="container">
			<div>
				<h3>PMI Mobile Server
				<br />
				<small>Cepat, Mudah dan Akurat</small></h3>
				<br />
			</div>

			<div class="row">
				<div class="col-sm-2">
					<nav class="nav-sidebar">
						<ul class="nav">
							<li class="<?php echo ($page=='home')?'active':''; ?>">
								<a href="<?php echo base_url(); ?>">Home</a>
							</li>
							<li class="<?php echo ($page=='stock')?'active':''; ?>">
								<a href="<?php echo base_url() . 'index.php/main/stock'; ?>">Stock Darah</a>
							</li>
							<li class="<?php echo ($page=='broadcast')?'active':''; ?>">
								<a href="<?php echo base_url() . 'index.php/main/broadcast'; ?>">Broadcast</a>
							</li>
							<li class="<?php echo ($page=='udd')?'active':''; ?>">
								<a href="<?php echo base_url() . 'index.php/main/udd'; ?>">UDD</a>
							</li>
							<li class="nav-divider"></li>
							<li>
								<a href="<?php echo base_url() . 'index.php/main/dologout'; ?>"><i class="glyphicon glyphicon-off"></i> Logout</a>
							</li>
						</ul>
					</nav>
				</div>
				<div class="col-sm-9">
					<div class="container">
						<?php
						$this -> load -> view('menu/' . $page);
						?>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>